package com.wwh.aop.homework;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Albert
 * @date 2024/8/27-13:20
 * @describe
 */
public class TestCal {
    @Test
    public void cal(){
        ApplicationContext ioc = new ClassPathXmlApplicationContext("beansHomework.xml");

        Cal cal = ioc.getBean(Cal.class);

        cal.cal1(5);

        System.out.println("===================");

        cal.cal2(3);
    }
}
